<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../../common/tagInclude.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
	<base href="${basePath}" />
	<title>用户操作统计报表</title>
	<META http-equiv="content-type" content="text/html; charset=UTF-8">
	<LINK href="${basePath}styleAdmin/css/portalinabox.css" type="text/css" rel="stylesheet">		
	<meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
   <meta http-equiv="expires" content="0">
	<script type="text/javascript" src="${basePath}styleAdmin/js/prototype-1.6.0.3.js"></script>
	<script type="text/javascript" src="${basePath}styleAdmin/js/Calendar/WdatePicker.js"></script>
	<script type="text/javascript">
		function doQuery(){
			document.myform.jsp = "${basePath}admin/log/report";
			document.myform.submit();
		}
</script>
</HEAD>
<body bottomMargin="0" leftMargin="0" topMargin="0" rightMargin="0">
<form action="" method="get" name="myform">
<%@include file="../common/navigate.jsp" %>
<table width="96%" border="0" align="center" cellpadding="0" style="margin-top:5px;" cellspacing="0">
	<tr>
		<td valign="top">
			<!-- 搜索栏 -->
			<table width="100%" border="1" class="mainFunctionTable"  cellpadding="0" cellspacing="1">
				<tr height="25" class="pLabel">
			   		<td class="td_nwarpstyle">&nbsp;&nbsp;用户操作统计报表</td>
			 	</tr>
				<tr>
			   		<td width="100%" height="25">
			   			<table width="100%" border="0" cellspacing="1">
			     			<tr>
			       				<td>
			         				&nbsp;&nbsp;开始时间
			         				<input type="text" name="startDate" id="startDate" value="${startDate}" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="Wdate" style="width:80px"/>
			         				&nbsp;&nbsp;结束时间
			         				<input type="text" name="endDate" id="endDate" value="${endDate}" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="Wdate" style="width:80px"/>
			       				</td>
			       				<td align="right">
			       					<a href="javascript:doQuery();"><img src="${basePath}styleAdmin/images/button/query.gif" border="0"/></a>
			        			</td>
			     			</tr>
			    		</table>
			    	</td>
			   </tr>
			 </table>
		  </td>
	  </tr>
	  <tr>
	    <td>
			<table width=100% border=1 class="mainFunctionTable"  cellpadding="0" cellspacing="1" id="table_channel">
				<tr height=25 class="pLabel" align="center">
					<td width="10%" class="td_nwarpstyle">用户名</td>
					<td width="10%" class="td_nwarpstyle">姓名</td>
					<td width="10%" class="td_nwarpstyle">部门</td>
					<td width="10%" class="td_nwarpstyle">新增(总数)</td>
					<td width="10%" class="td_nwarpstyle">删除(总数)</td>
					<td width="10%" class="td_nwarpstyle">修改(总数)</td>
				</tr>
			</table>
			<table width=100% border=1 class="mainFunctionTable"  cellpadding="0" cellspacing="1" id="table_channel">
				<c:forEach items="${reportDTOList}" var="report" varStatus="status">
	   					<c:choose>
	   						<c:when test="${status.index % 2 == 0 }"><c:set var="css" value="c1" /></c:when>
	   						<c:otherwise><c:set var="css" value="c2" /></c:otherwise>
	   					</c:choose>
						<tr class="${css}">
						<td width="10%" height="25">${report.userInfo.username}</td>
						<td width="10%" height="25">${report.userInfo.realName}</td>
						<td width="10%" height="25">${report.userInfo.deptName}</td>

						<td width="10%" align="center">
							<a href="${basePath}admin/log/list?userId=${report.userInfo.id}&logActionId=${action_insert}&startDate=${startDate}&endDate=${endDate}">
								${report.logOpr.insert}
							</a>
						</td>
						<td width="10%" align="center">
							<a href="${basePath}admin/log/list?userId=${report.userInfo.id}&logActionId=${action_delete}&startDate=${startDate}&endDate=${endDate}">
								${report.logOpr.delete}
							</a>
						</td>
						<td width="10%" align="center">
							<a href="${basePath}admin/log/list?userId=${report.userInfo.id}&logActionId=${action_modify}&startDate=${startDate}&endDate=${endDate}">
								${report.logOpr.modify}
							</a>
						</td>
					</tr>
				</c:forEach>
	  		</table>
		 </td>
	   </tr>
	   <tr>
		   <td height=25>
		   	<c:set var="pageURL" value="${basePath}admin/log/report?startDate=${fmtString:encoder(startDate)}&endDate=${fmtString:encoder(endDate)}&"/>
			<%@include file="../common/page.jsp"%>
		  </td>
	  </tr>
</table>
</form>
</body>
</HTML>